package model;

import lombok.Data;
import lombok.experimental.Accessors;
import utils.DateUtils;

import java.util.Date;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2023/4/1 22:23
 */
@Data
@Accessors(chain = true)
public class Blog {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;

    public  String getCreateTime() {
        return DateUtils.parseDate(createTime);
    }
    public  String getUpdateTime() {
        return DateUtils.parseDate(updateTime);
    }
}
